package action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.interceptor.annotations.After;
import com.opensymphony.xwork2.interceptor.annotations.Before;
import com.opensymphony.xwork2.interceptor.annotations.BeforeResult;

/**
 * @author dingyuanwei
 * @version 建立時間：Dec 24, 20102:22:34 PM
 * 類別說明:
 */
public class AnnotationAction extends ActionSupport {
	@Before
	public void before(){
		System.out.println("执行befor()方法！");
	}
	@After
	public void after(){
		System.out.println("执行after()方法！");
	}
	@BeforeResult
	public void beforeResult(){
		System.out.println("执行beforeResult()方法！");
	}
	@Override
	public String execute() throws Exception {
		System.out.println("执行execute()方法！");
		return SUCCESS;
	}
	
}
